/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package View;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
/**
 *
 * @author yosia
 */
public class FrameUtama extends JPanel {
     private JLabel sekre;
    private JLabel universitas;
    private JButton tambahDokumen;
    private JButton cekSuratDokumen;
    private JButton exit;
    private JLabel logo;
    private JButton tambahSurat;
    
    public FrameUtama() {
        setLayout(null);
//        this.setLocation(100, 100);
//        this.setSize(5000, 7700);
////        this.setTitle("Proyek"); 
        this.setVisible(true);
        
        sekre = new JLabel("Sekretariat");
        sekre.setFont(new Font("Sherif", Font.BOLD,50));
        sekre.setBounds(300, 20, 300, 80);
        add(sekre);
        
        universitas = new JLabel("Universitas Sanata Dharma");
        universitas.setFont(new Font("Sherif", Font.BOLD,40));
        universitas.setBounds(200,80,700, 80);
        add(universitas);
        
        logo = new JLabel(new ImageIcon("logo1.jpg"));
        logo.setBounds(300, 150, 250, 250);
        add(logo);
        
        tambahSurat = new JButton ("Tambah Surat");
        tambahSurat.setBounds(200, 400, 200, 20);
        add(tambahSurat);
               
        
        tambahDokumen = new JButton("Tambah Dokumen");
        tambahDokumen.setBounds(480, 400, 200,20);
        add(tambahDokumen);
        
        cekSuratDokumen = new JButton("Cek Surat/Dokumen");
        cekSuratDokumen.setBounds(390, 450, 100, 20);
        add(cekSuratDokumen);

        exit = new JButton("Exit");
        exit.setBounds(580, 530, 100, 20);
        add(exit);

        
        exit.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                System.exit(WIDTH);
            }
        });
}
}
